//
//  NCTabBarController.swift
//  HappyComics
//
//  Created by 金玉龙 on 15/11/24.
//  Copyright © 2015年 jinyulong. All rights reserved.
//

import UIKit
let kScreenWidth : CGFloat = UIScreen .mainScreen().bounds.size.width
let kScreenHeight :CGFloat = UIScreen.mainScreen().bounds.size.height
class HCTabBarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let comic = HCComicViewController()
        comic.tabBarItem = UITabBarItem.init(title: "漫画", image: nil, tag: 100)
        let comicNC = HCNavigationController.init(rootViewController: comic)
        let collection = HCViewController();
        collection.tabBarItem = UITabBarItem.init(title: "收藏", image: nil, tag: 101);
        let topic = HCViewController();
        topic.tabBarItem = UITabBarItem.init(title: "专题", image: nil, tag: 102);
        let individual = HCViewController();
        individual.tabBarItem = UITabBarItem.init(title: "个人", image: nil, tag: 103)
        self .setViewControllers([comicNC,collection,topic,individual], animated: true)
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
